import Router from "koa-router";
import httpRequest from "@/utils/http";
import { Result } from "@/utils/result";

const ancientPoetryRouter = new Router({ prefix: "/api/daily/ancientpoetry" });
ancientPoetryRouter.get("/", async (ctx, next) => {
    const res = await httpRequest.get({
        baseURL: "https://api.codelife.cc/todayShici?lang=cn"
    });
    Result.ok(ctx, res.data, "古诗获取成功");
});

export default ancientPoetryRouter;
